<?php
class Site_Model_Category
{
	public function __construct()
	{
	}
	
	public function getCategoryId($name)
	{
		$categ = new Application_Model_Db_Categories();
		$category = $categ->fetchRow( 'name = "'.$name.'"' );
		
		return isset($category->idCategory) ? $category->idCategory : null;
	}
}

